package com.lu.pojo;

import java.util.Date;

public class Tradelog {
    /**
     * 交易编号
     */
    private int trid;
    /**
     * 物品编号
     */
    private int gid;
    /**
     * 名称
     */
    private String trname;
    /**
     * 价格
     */
    private Double price;
    /**
     * 卖家
     */
    private int seller;
    /**
     * 买家
     */
    private int buyer;
    /**
     * 交易时间
     */
    private Date tradinghour;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 更新人
     */
    private String updatedBy;
    /**
     * 更新时间
     */
    private Date updatedTime;
    private String address; // 收货地址

    public Tradelog() {
    }


    public Tradelog(int trid, String trname, Double price, int seller, int buyer, Date tradinghour) {
        this.trid = trid;
        this.trname = trname;
        this.price = price;
        this.seller = seller;
        this.buyer = buyer;
        this.tradinghour = tradinghour;
    }

    public Tradelog(int gid, String trname, Double price, int seller, int buyer, String createdBy, String address) {
        this.gid = gid;
        this.trname = trname;
        this.price = price;
        this.seller = seller;
        this.buyer = buyer;
        this.createdBy = createdBy;
        this.address = address;
    }

    public int getTrid() {
        return this.trid;
    }

    public void setTrid(int trid) {
        this.trid = trid;
    }

    public int getGid() {
        return this.gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getTrname() {
        return this.trname;
    }

    public void setTrname(String trname) {
        this.trname = trname;
    }

    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getSeller() {
        return this.seller;
    }

    public void setSeller(int seller) {
        this.seller = seller;
    }

    public int getBuyer() {
        return this.buyer;
    }

    public void setBuyer(int buyer) {
        this.buyer = buyer;
    }

    public Date getTradinghour() {
        return this.tradinghour;
    }

    public void setTradinghour(Date tradinghour) {
        this.tradinghour = tradinghour;
    }

    public String getCreatedBy() {
        return this.createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return this.createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return this.updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedTime() {
        return this.updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
